package com.edu.bhu.admin.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 订单明细对象 cos_order_detail
 * 
 * @author wangjinao
 * @date 2022-03-17
 */
public class CosOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单明细唯一标识 */
    private Long orderDetailId;

    /** 关联商品ID */
    @Excel(name = "关联商品ID")
    private Long cosId;
    private CosCosmetics cosmetics;

    /** 关联订单ID */
    @Excel(name = "关联订单ID")
    private Long orderId;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    public CosCosmetics getCosmetics() {
        return cosmetics;
    }

    public void setCosmetics(CosCosmetics cosmetics) {
        this.cosmetics = cosmetics;
    }

    public void setOrderDetailId(Long orderDetailId)
    {
        this.orderDetailId = orderDetailId;
    }

    public Long getOrderDetailId() 
    {
        return orderDetailId;
    }
    public void setCosId(Long cosId) 
    {
        this.cosId = cosId;
    }

    public Long getCosId() 
    {
        return cosId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderDetailId", getOrderDetailId())
            .append("cosId", getCosId())
            .append("orderId", getOrderId())
            .append("number", getNumber())
            .append("price", getPrice())
            .toString();
    }
}
